package com.ybkj.chat.module.mine.activity;

import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;

import com.bigkoo.pickerview.builder.TimePickerBuilder;
import com.bigkoo.pickerview.listener.OnTimeSelectListener;
import com.bigkoo.pickerview.view.TimePickerView;
import com.ybkj.chat.R;
import com.ybkj.chat.base.BaseMvpActivity;
import com.ybkj.chat.ui.adapter.WithdrawDetailAdapter;
import com.ybkj.chat.ui.view.recyclerview.XRecyclerView;

import java.util.Date;

import butterknife.BindView;
import butterknife.ButterKnife;

/**
 * @author yyj
 * @create 2019-02-20 11:54
 * @Describe 提现明细
 */
public class WithdrawDetailActivity extends BaseMvpActivity {
    @BindView(R.id.head_right_img1)
    ImageView headRightImg1;
    @BindView(R.id.rv_withdraw_detail)
    XRecyclerView rvWithdrawDetail;

    private WithdrawDetailAdapter withdrawDetailAdapter;

    @Override
    protected void injectPresenter() {

    }

    @Override
    protected void initTitle() {
        setTitleText("提现明细");
        setRightText("记录");
        setRightTextColor(R.color.color_434);
        headRightImg1.setImageResource(R.drawable.icon_triangle);
        headRightImg1.setVisibility(View.VISIBLE);

    }

    @Override
    protected int getLayoutId() {
        return R.layout.activity_withdraw_detail;
    }

    @Override
    protected void initView() {
        withdrawDetailAdapter = new WithdrawDetailAdapter(this);
        withdrawDetailAdapter.addData("1");
        withdrawDetailAdapter.addData("1");
        withdrawDetailAdapter.addData("1");
        withdrawDetailAdapter.addData("1");
        rvWithdrawDetail.setAdapter(withdrawDetailAdapter);
    }

    @Override
    protected void initData() {

    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        // TODO: add setContentView(...) invocation
        ButterKnife.bind(this);
    }

    @Override
    public void onRightTextClick() {
        TimePickerView pvTime = new TimePickerBuilder(mContext, new OnTimeSelectListener() {
            @Override
            public void onTimeSelect(Date date, View v) {

            }
        })
                .setType(new boolean[]{true, true, false, false, false, false})
                .build();
        pvTime.show();
    }
}
